package InheritanceAndPolymorphism.demo07;

public class Eagle extends Pet{
    public Eagle(String name) {
        super(name);
    }

    @Override
    public void follow() {
        System.out.println(name + " 像鹰一样在空中跟随");
    }
}
